package com.bbs.service;

import java.util.List;

import com.bbs.dao.CollectionDao;
import com.bbs.entity.Collection;
import com.bbs.util.Page;

public class CollectionService {

	public void deleteByAid(int id) {
		new CollectionDao().deleteByAid(id);
	}

	public void save(Collection col) {
		new CollectionDao().save(col);
	}
	
	public List<Collection> findMine(int id,Page p){
		return new CollectionDao().findByuid(id,p);
	}

	public int getCountByuid(int id) {
		return new CollectionDao().getCountByuid(id);
	}
}
